package com.catchegg.springcloud.controller.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author noreply
 * @description
 * @datetime 2021/11/3 22:20
 */
@Component
//@FeignClient(value = "cloud-provider-payment", fallback = PaymentFallbackHystrixService.class)
@FeignClient(value = "cloud-provider-payment")
public interface PaymentHystrixService {
    @GetMapping("payment/info/ok/{id}")
    String paymentInfo_OK(@PathVariable("id") Integer id);

    @GetMapping("payment/info/error/{id}")
    String paymentInfo_ERROR(@PathVariable("id") Integer id);
}
